<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增省份信息')"/>
    <th:block th:include="include :: select2-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-provinceinfo-add">
        <div class="form-group">
            <label class="col-sm-3 control-label"><span
                    style="color: red;">*</span>省份编码：</label>
            <div class="col-sm-8">
                <input name="provinceId" class="form-control" type="text" required
                       isNumber="isNumber" maxlength="5">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"><span
                    style="color: red;">*</span>省份名称：</label>
            <div class="col-sm-8">
                <input name="provinceName" class="form-control" type="text" required
                       maxlength="10">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: select2-js"/>
<script type="text/javascript">
    var prefix = ctx + "bussiness/provinceinfo"
    $("#form-provinceinfo-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-provinceinfo-add')
                .serialize());
        }
    }
</script>
</body>
</html>